home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wtek0693.zip
/
OOPALLEY.ZIP
/
QUEUE.V
< prev
next >
Wrap
Text File
|
1990-04-30
|
3KB
|
191 lines
hello, world
q created
q capacity: 10
q size: 0
sizeof(q):8
sizeof(Object):2
sizeof(Point):6
sizeof(Queue):8
sizeof(ArrayOb):6
========================================
Queue capacity: 10
Queue size: 3
Queue *pContents: ArrayOb[
(0 @ 1)
(0 @ 2)
(0 @ 3)
NIL
NIL
NIL
NIL
NIL
NIL
NIL]
readPosition: 0
writePosition: 3
Remove and print each object in Queue:
(0 @ 1) | (0 @ 2) | (0 @ 3) | =======
========================================
q should be filled:
Queue capacity: 10
Queue size: 7
Queue *pContents: ArrayOb[
NIL
NIL
NIL
(0 @ 4)
(0 @ 5)
(0 @ 6)
(0 @ 7)
(0 @ 8)
(0 @ 9)
(0 @ 10)]
readPosition: 3
writePosition: 10
Remove and print each object in Queue:
(0 @ 4) | (0 @ 5) | (0 @ 6) | (0 @ 7) | (0 @ 8) | (0 @ 9) | (0 @ 10) | =======
========================================
Queue capacity: 10
Queue size: 3
Queue *pContents: ArrayOb[
(1 @ 1)
(1 @ 2)
(1 @ 3)
NIL
NIL
NIL
NIL
NIL
NIL
NIL]
readPosition: 0
writePosition: 3
Remove and print each object in Queue:
(1 @ 1) | (1 @ 2) | (1 @ 3) | =======
========================================
q should be filled:
Queue capacity: 10
Queue size: 7
Queue *pContents: ArrayOb[
NIL
NIL
NIL
(1 @ 4)
(1 @ 5)
(1 @ 6)
(1 @ 7)
(1 @ 8)
(1 @ 9)
(1 @ 10)]
readPosition: 3
writePosition: 10
Remove and print each object in Queue:
(1 @ 4) | (1 @ 5) | (1 @ 6) | (1 @ 7) | (1 @ 8) | (1 @ 9) | (1 @ 10) | =======
========================================
Queue capacity: 10
Queue size: 3
Queue *pContents: ArrayOb[
(3 @ 1)
(3 @ 2)
(3 @ 3)
NIL
NIL
NIL
NIL
NIL
NIL
NIL]
readPosition: 0
writePosition: 3
Queue[
(3 @ 1)
(3 @ 2)
(3 @ 3)]
========================================
Queue capacity: 10
Queue size: 10
Queue *pContents: ArrayOb[
(3 @ 1)
(3 @ 2)
(3 @ 3)
(3 @ 4)
(3 @ 5)
(3 @ 6)
(3 @ 7)
(3 @ 8)
(3 @ 9)
(3 @ 10)]
readPosition: 0
writePosition: 10
Queue[
(3 @ 1)
(3 @ 2)
(3 @ 3)
(3 @ 4)
(3 @ 5)
(3 @ 6)
(3 @ 7)
(3 @ 8)
(3 @ 9)
(3 @ 10)]
Next statement should resize q
========================================
Queue capacity: 42
Queue size: 11
Queue *pContents: ArrayOb[
(3 @ 1)
(3 @ 2)
(3 @ 3)
(3 @ 4)
(3 @ 5)
(3 @ 6)
(3 @ 7)
(3 @ 8)
(3 @ 9)
(3 @ 10)
(3 @ 11)
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL
NIL]
readPosition: 0
writePosition: 11
========================================
Remove and print each object in Queue:
(3 @ 1) | (3 @ 2) | (3 @ 3) | (3 @ 4) | (3 @ 5) | (3 @ 6) | (3 @ 7) | (3 @ 8) | (3 @ 9) | (3 @ 10) | (3 @ 11) | =======
========================================